/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package anotador;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

/**
 *
 * @author Mauricio
 */
public class Settings {

    private static Properties properties = new Properties();

    public static void load() throws FileNotFoundException, IOException
    {
        properties.load(new FileInputStream( new File("anotador.properties") ));
    }

    public static void load(String file) throws FileNotFoundException, IOException
    {
        properties.load(new FileInputStream(new File(file)));
    }

    public static String get(String key)
    {
        return (String)properties.get(key);
    }
}
